<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Trae AI - 革命性的智能编程助手</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .card-hover {
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(102, 126, 234, 0.5);
        }
        .code-block {
            background: #1a1a2e;
            border-left: 4px solid #667eea;
            position: relative;
            overflow: hidden;
        }
        .code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
        }
        .floating-icon {
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        .section-divider {
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.5), transparent);
        }
        .mermaid {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 2rem;
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        .highlight-box {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
            border-left: 4px solid #667eea;
            backdrop-filter: blur(10px);
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .scroll-indicator {
            animation: bounce 2s infinite;
        }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }
    </style>
</head>
<body class="text-gray-100">
    <!-- Hero Section -->
    <section class="relative min-h-screen flex items-center justify-center px-4 py-20">
        <div class="absolute inset-0 overflow-hidden">
            <div class="absolute top-20 left-10 floating-icon">
                <i class="fas fa-code text-6xl text-purple-500 opacity-20"></i>
            </div>
            <div class="absolute bottom-20 right-10 floating-icon" style="animation-delay: 1s;">
                <i class="fas fa-robot text-6xl text-indigo-500 opacity-20"></i>
            </div>
            <div class="absolute top-1/2 left-1/4 floating-icon" style="animation-delay: 2s;">
                <i class="fas fa-brain text-4xl text-pink-500 opacity-20"></i>
            </div>
        </div>
        
        <div class="max-w-6xl mx-auto text-center relative z-10">
            <h1 class="text-6xl md:text-8xl font-bold mb-6">
                <span class="hero-gradient">Trae AI</span>
            </h1>
            <p class="text-2xl md:text-3xl text-gray-300 mb-8 font-light">革命性的智能编程助手</p>
            <p class="text-xl text-gray-400 max-w-3xl mx-auto leading-relaxed">
                <span class="drop-cap">基</span>于 AI Flow 范式的强大代理式编程助手，在革命性的智能 IDE 中独立运行，能够与用户进行深度协作，共同解决复杂的编程挑战。
            </p>
            <div class="mt-12 scroll-indicator">
                <i class="fas fa-chevron-down text-3xl text-gray-500"></i>
            </div>
        </div>
    </section>

    <!-- Core Identity Section -->
    <section class="py-20 px-4">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-4xl md:text-5xl font-bold mb-4">
                    <i class="fas fa-fingerprint feature-icon mr-3"></i>
                    核心身份
                </h2>
                <div class="section-divider w-32 mx-auto mt-6"></div>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="card-hover bg-gray-900 bg-opacity-50 rounded-2xl p-8">
                    <div class="flex items-start mb-4">
                        <i class="fas fa-microchip text-3xl text-purple-400 mr-4 mt-1"></i>
                        <div>
                            <h3 class="text-2xl font-semibold mb-3">智能代理架构</h3>
                            <p class="text-gray-300 leading-relaxed">Trae AI 是一个强大的代理式 AI 编程助手，专为现代软件开发而设计。它不仅仅是一个工具，更是您的智能编程伙伴。</p>
                        </div>
                    </div>
                </div>
                
                <div class="card-hover bg-gray-900 bg-opacity-50 rounded-2xl p-8">
                    <div class="flex items-start mb-4">
                        <i class="fas fa-sync-alt text-3xl text-indigo-400 mr-4 mt-1"></i>
                        <div>
                            <h3 class="text-2xl font-semibold mb-3">AI Flow 范式</h3>
                            <p class="text-gray-300 leading-relaxed">基于革命性的 AI Flow 范式运行，实现了前所未有的智能化编程体验，让 AI 真正理解您的意图并主动协助。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Purpose & Capabilities -->
    <section class="py-20 px-4 bg-gray-900 bg-opacity-30">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-4xl md:text-5xl font-bold mb-4">
                    <i class="fas fa-bullseye feature-icon mr-3"></i>
                    核心使命
                </h2>
                <div class="section-divider w-32 mx-auto mt-6"></div>
            </div>
            
            <div class="highlight-box rounded-2xl p-10 mb-12">
                <p class="text-xl leading-relaxed text-gray-200">
                    Trae AI 的使命是成为开发者最值得信赖的编程伙伴。通过深度理解用户的编程任务和思路，智能判断是否需要额外工具支持，并提供最优的解决方案。无论是创建新项目、调试现有代码，还是回答技术问题，Trae AI 都能提供专业、高效的协助。
                </p>
            </div>
            
            <div class="grid md:grid-cols-3 gap-6">
                <div class="text-center p-6">
                    <i class="fas fa-plus-circle text-5xl text-green-400 mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2">创建新项目</h3>
                    <p class="text-gray-400">从零开始构建完整的代码库</p>
                </div>
                <div class="text-center p-6">
                    <i class="fas fa-tools text-5xl text-yellow-400 mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2">修改与调试</h3>
                    <p class="text-gray-400">优化和修复现有代码问题</p>
                </div>
                <div class="text-center p-6">
                    <i class="fas fa-question-circle text-5xl text-blue-400 mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2">技术咨询</h3>
                    <p class="text-gray-400">回答各类编程相关问题</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Working Principles -->
    <section class="py-20 px-4">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-4xl md:text-5xl font-bold mb-4">
                    <i class="fas fa-cogs feature-icon mr-3"></i>
                    工作原理
                </h2>
                <div class="section-divider w-32 mx-auto mt-6"></div>
            </div>
            
            <div class="mb-12">
                <div class="mermaid">
                    graph TD
                        A[用户输入任务] --> B{分析任务需求}
                        B --> C[理解用户意图]
                        C --> D{判断工具需求}
                        D -->|需要工具| E[设置工具调用标志]
                        D -->|直接响应| F[生成响应文本]
                        E --> G[准备工具参数]
                        G --> H[执行工具调用]
                        H --> I[处理工具结果]
                        I --> J[生成最终响应]
                        F --> J
                        J --> K[返回给用户]
                        
                        style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style K fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style B fill:#4a5568,stroke:#667eea,stroke-width:2px,color:#fff
                        style D fill:#4a5568,stroke:#667eea,stroke-width:2px,color:#fff
                </div>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8 mt-12">
                <div class="code-block rounded-xl p-6">
                    <h3 class="text-xl font-semibold mb-4 text-purple-300">
                        <i class="fas fa-terminal mr-2"></i>智能决策流程
                    </h3>
                    <ol class="space-y-3 text-gray-300">
                        <li><i class="fas fa-check-circle text-green-400 mr-2"></i>深度分析用户任务</li>
                        <li><i class="fas fa-check-circle text-green-400 mr-2"></i>理解编程意图和上下文</li>
                        <li><i class="fas fa-check-circle text-green-400 mr-2"></i>评估是否需要工具支持</li>
                        <li><i class="fas fa-check-circle text-green-400 mr-2"></i>选择最优解决方案</li>
                        <li><i class="fas fa-check-circle text-green-400 mr-2"></i>生成高质量响应</li>
                    </ol>
                </div>
                
                <div class="code-block rounded-xl p-6">
                    <h3 class="text-xl font-semibold mb-4 text-purple-300">
                        <i class="fas fa-shield-alt mr-2"></i>响应准则
                    </h3>
                    <ul class="space-y-3 text-gray-300">
                        <li><i class="fas fa-arrow-right text-indigo-400 mr-2"></i>精确的代码编辑建议</li>
                        <li><i class="fas fa-arrow-right text-indigo-400 mr-2"></i>清晰的 Markdown 格式</li>
                        <li><i class="fas fa-arrow-right text-indigo-400 mr-2"></i>完整的文件路径标注</li>
                        <li><i class="fas fa-arrow-right text-indigo-400 mr-2"></i>适配不同操作系统</li>
                        <li><i class="fas fa-arrow-right text-indigo-400 mr-2"></i>即时可运行的代码</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>

    <!-- Key Features -->
    <section class="py-20 px-4 bg-gray-900 bg-opacity-30">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                